<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>首页</title>
</head>
<body>
	<h1>首页</h1>
	<ul style="list-style: none;">
		<c:forEach var="category" items="${categories }">
			<li style="float: left;"><a
				href="../home/showCategory?category=${category.id }">${category.name }</a></li>
		</c:forEach>
	</ul>
	<hr />
	<br />
	<c:set var="products" scope="page" value="${data.items }"></c:set>
	<c:forEach var="product" items="${products }">
		<dl>
			<dt>
				<a href="./product/get?id=${product.id}"> <img style="width: 240px; height: 180px;"
					alt="${product.name}" src="${product.image}" />
				</a>
			</dt>
			<dd>${product.name},Price:${product.price }</dd>
		</dl>
	</c:forEach>
	<hr />
</body>
</html>